how to find squares of a number in secs